package com.selene.sqlSession;

import java.util.List;

public interface SqlSession {
    //select multiple
    public <E> List<E> selectList(String statementId, Object... params) throws Exception;

    //select one
    public <T> T selectOne(String statementId, Object... params) throws Exception;

    public void deleteOne(String statementId, Object... params) throws Exception;

    public void insertOne(String statementId, Object... params) throws Exception;

    public void updateOne(String statementId, Object... params) throws Exception;

    //为Dao接口生成代理实现类
    public <T> T getMapper(Class<?> mapperClass);
}
